<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <link rel="stylesheet" href="./static/layui/css/layui.css">
    <style type="text/css">
        .title {
            font-size: 26px;
            line-height: 61px;
            font-weight: bold;
            margin-left: 18px;
            display: inline-block;
        }

        .info {
            float: right;
            margin-right: 18px;
            display: inline-block;
            width: 200px;
        }

        .info1 {
            width: 80px;
            display: inline-block;
            text-align: right;
        }

        .info2 {
            width: 110px;
            display: inline-block;
            text-align: left;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="layui-bg-cyan" style="height: 61px">
        <p class="title">成都饮食习惯大数据分析</p>
        <small class="info">
            <div class="">
                <div class="info1">author:</div>
                <div class="info2">admin</div>
            </div>
            <div class="">
                <div class="info1">time:</div>
                <div class="info2" id="time"></div>
            </div>
            <div class="">
                <div class="info1">version:</div>
                <div class="info2">1.0</div>
            </div>
        </small>
    </div>
    <div class="layui-row">
        <div class="">
            <ul class="layui-nav layui-nav-tree layui-nav-side layui-bg-cyan" style="margin-top: 60px;">
                <li class="layui-nav-item ">
                    <a href="javascript:void(0);" onclick="setFrameSrc('./echarts/index.html')">仪表盘</a>
                </li>
                <li class="layui-nav-item layui-this">
                    <a href="javascript:void(0);" onclick="setFrameSrc('./table/table.html')">大数据分析</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:void(0);" onclick="setFrameSrc('./gis/gis1.html')">地理图展示</a>
                </li>
            </ul>
        </div>
        <div class="" style="margin-left: 200px;">
            <div class="layui-show">
                <iframe id="frame" src="./table/table.html" width="100%" height="800" frameborder="0"></iframe>
            </div>
        </div>
    </div>
</div>

</body>
<script type="text/javascript" src="./static/layui/layui.all.js"></script>
<script type="text/javascript">
    const $ = layui.$;
    const layer = layui.layer;

    function setFrameSrc(src) {
        $("#frame").attr("src", src);
    }

    //获取时间
    $("#time").text("2021-03-04");
</script>
</html>